﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooGameplayRTSModelInstaningWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Gameplay.RTS.ModelInstaning);
			Utils.BeginObjectRegister(type, L, translator, 0, 31, 24, 22);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitMountPoints", _m_InitMountPoints);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnimatorEnabled", _m_SetAnimatorEnabled);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRendererEnabled", _m_SetRendererEnabled);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCullingCameraMark", _m_SetCullingCameraMark);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCullingLayer", _m_SetCullingLayer);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPosition", _m_SetPosition);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetForward", _m_GetForward);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRotation", _m_GetRotation);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetScale", _m_SetScale);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetScale", _m_ResetScale);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRotation", _m_SetRotation);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetForward", _m_SetForward);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetConfig", _m_SetConfig);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMainColor", _m_SetMainColor);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "HideShadow", _m_HideShadow);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTrigger", _m_SetTrigger);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnimatorTime", _m_SetAnimatorTime);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnimatorSpeed", _m_SetAnimatorSpeed);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAlpha", _m_SetAlpha);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCampColor", _m_SetCampColor);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInRoom", _m_SetInRoom);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBreathLight", _m_SetBreathLight);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetShadowPosition", _m_SetShadowPosition);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDissolve", _m_SetDissolve);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetShadowAlpha", _m_SetShadowAlpha);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetShadowHeight", _m_SetShadowHeight);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRelease", _m_OnRelease);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRimColor", _m_SetRimColor);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRimValue", _m_SetRimValue);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMountPointByIndex", _m_GetMountPointByIndex);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "CullingLayer", _g_get_CullingLayer);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "CurrentTime", _g_get_CurrentTime);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "poolKey", _g_get_poolKey);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "owner", _g_get_owner);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "enemy", _g_get_enemy);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "mat", _g_get_mat);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowMesh", _g_get_shadowMesh);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowMat", _g_get_shadowMat);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationInfo", _g_get_animationInfo);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "transforms", _g_get_transforms);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "components", _g_get_components);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "nameToHash", _g_get_nameToHash);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "lodMeshLow", _g_get_lodMeshLow);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "lodMeshMedium", _g_get_lodMeshMedium);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasInitedMountPoints", _g_get_hasInitedMountPoints);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_transform", _g_get_m_transform);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_displaySubMesh1", _g_get_m_displaySubMesh1);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_riming", _g_get_m_riming);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_rimInstencity", _g_get_m_rimInstencity);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_rimColor", _g_get_m_rimColor);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "animatorEnabled", _g_get_animatorEnabled);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "rendererEnabled", _g_get_rendererEnabled);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_gpuAnimator", _g_get_m_gpuAnimator);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "localScale", _g_get_localScale);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "poolKey", _s_set_poolKey);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "owner", _s_set_owner);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "enemy", _s_set_enemy);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "mat", _s_set_mat);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowMesh", _s_set_shadowMesh);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowMat", _s_set_shadowMat);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationInfo", _s_set_animationInfo);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "transforms", _s_set_transforms);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "components", _s_set_components);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "nameToHash", _s_set_nameToHash);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "lodMeshLow", _s_set_lodMeshLow);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "lodMeshMedium", _s_set_lodMeshMedium);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "hasInitedMountPoints", _s_set_hasInitedMountPoints);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_transform", _s_set_m_transform);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_displaySubMesh1", _s_set_m_displaySubMesh1);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_riming", _s_set_m_riming);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_rimInstencity", _s_set_m_rimInstencity);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_rimColor", _s_set_m_rimColor);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "animatorEnabled", _s_set_animatorEnabled);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "rendererEnabled", _s_set_rendererEnabled);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_gpuAnimator", _s_set_m_gpuAnimator);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "localScale", _s_set_localScale);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1);
			
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ALL_MODEL_INSTANING_COUNTER", _g_get_ALL_MODEL_INSTANING_COUNTER);
            
			Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ALL_MODEL_INSTANING_COUNTER", _s_set_ALL_MODEL_INSTANING_COUNTER);
            
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Gameplay.RTS.ModelInstaning();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.RTS.ModelInstaning constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Gameplay.RTS.ModelInstaning();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.RTS.ModelInstaning constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_InitMountPoints(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string[] _mountPointNames = (string[])translator.GetObject(L, 2, typeof(string[]));
                    UnityEngine.Transform[] _mountPoints = (UnityEngine.Transform[])translator.GetObject(L, 3, typeof(UnityEngine.Transform[]));
                    
                    gen_to_be_invoked.InitMountPoints( _mountPointNames, ref _mountPoints );
                    translator.Push(L, _mountPoints);
                        
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetAnimatorEnabled(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _value = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.SetAnimatorEnabled( _value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetRendererEnabled(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _value = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.SetRendererEnabled( _value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetCullingCameraMark(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _value = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.SetCullingCameraMark( _value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetCullingLayer(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _cullingLayer = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.SetCullingLayer( _cullingLayer );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetPosition(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    
                    gen_to_be_invoked.SetPosition( _position );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetForward(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetForward(  );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetRotation(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetRotation(  );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetScale(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) 
                {
                    float _scale = (float)LuaAPI.lua_tonumber(L, 2);
                    bool _saveChange = LuaAPI.lua_toboolean(L, 3);
                    
                    gen_to_be_invoked.SetScale( _scale, _saveChange );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    float _localScale = (float)LuaAPI.lua_tonumber(L, 2);
                    float _shadowScale = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    gen_to_be_invoked.SetScale( _localScale, _shadowScale );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    float _localScale = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetScale( _localScale );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.RTS.ModelInstaning.SetScale!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ResetScale(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ResetScale(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetRotation(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _eulerAngles;translator.Get(L, 2, out _eulerAngles);
                    
                    gen_to_be_invoked.SetRotation( _eulerAngles );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetForward(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _forward;translator.Get(L, 2, out _forward);
                    
                    gen_to_be_invoked.SetForward( _forward );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetConfig(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable<Yoozoo.Gameplay.RTS.GPUSkinning_AllAnimation>(L, 5)) 
                {
                    int _configId = LuaAPI.xlua_tointeger(L, 2);
                    int _blockId = LuaAPI.xlua_tointeger(L, 3);
                    int _camp = LuaAPI.xlua_tointeger(L, 4);
                    Yoozoo.Gameplay.RTS.GPUSkinning_AllAnimation _allAnimationInfo = (Yoozoo.Gameplay.RTS.GPUSkinning_AllAnimation)translator.GetObject(L, 5, typeof(Yoozoo.Gameplay.RTS.GPUSkinning_AllAnimation));
                    
                        var gen_ret = gen_to_be_invoked.SetConfig( _configId, _blockId, _camp, _allAnimationInfo );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) 
                {
                    int _configId = LuaAPI.xlua_tointeger(L, 2);
                    int _blockId = LuaAPI.xlua_tointeger(L, 3);
                    int _camp = LuaAPI.xlua_tointeger(L, 4);
                    
                        var gen_ret = gen_to_be_invoked.SetConfig( _configId, _blockId, _camp );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.RTS.ModelInstaning.SetConfig!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetMainColor(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _instaningId = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Color _color;translator.Get(L, 3, out _color);
                    
                    gen_to_be_invoked.SetMainColor( _instaningId, _color );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_HideShadow(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.HideShadow(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Init(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Init(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetTrigger(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) 
                {
                    string _name = LuaAPI.lua_tostring(L, 2);
                    bool _resetTransition = LuaAPI.lua_toboolean(L, 3);
                    
                    gen_to_be_invoked.SetTrigger( _name, _resetTransition );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) 
                {
                    string _name = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.SetTrigger( _name );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.RTS.ModelInstaning.SetTrigger!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetAnimatorTime(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _time = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetAnimatorTime( _time );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetAnimatorSpeed(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _speed = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetAnimatorSpeed( _speed );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetAlpha(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _alpha = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetAlpha( _alpha );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetCampColor(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Color _color;translator.Get(L, 2, out _color);
                    
                    gen_to_be_invoked.SetCampColor( _color );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetInRoom(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _inRoom = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetInRoom( _inRoom );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetBreathLight(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _breathLight = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetBreathLight( _breathLight );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetShadowPosition(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.SetShadowPosition(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetDissolve(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _dissolve = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetDissolve( _dissolve );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetShadowAlpha(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _alpha = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetShadowAlpha( _alpha );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetShadowHeight(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _height = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetShadowHeight( _height );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnRelease(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.OnRelease(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetRimColor(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Color _color;translator.Get(L, 2, out _color);
                    
                    gen_to_be_invoked.SetRimColor( _color );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetRimValue(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _rimValue = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetRimValue( _rimValue );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetMountPointByIndex(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _index = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetMountPointByIndex( _index );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_CullingLayer(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.CullingLayer);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_CurrentTime(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.CurrentTime);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_poolKey(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.poolKey);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_owner(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineColor(L, gen_to_be_invoked.owner);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_enemy(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineColor(L, gen_to_be_invoked.enemy);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_mat(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.mat);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_shadowMesh(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.shadowMesh);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_shadowMat(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.shadowMat);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_animationInfo(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.animationInfo);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_transforms(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.transforms);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_components(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.components);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_nameToHash(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.nameToHash);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_lodMeshLow(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.lodMeshLow);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_lodMeshMedium(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.lodMeshMedium);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_hasInitedMountPoints(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasInitedMountPoints);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_m_transform(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.m_transform);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_m_displaySubMesh1(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.m_displaySubMesh1);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_m_riming(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.m_riming);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_m_rimInstencity(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m_rimInstencity);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_m_rimColor(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineColor(L, gen_to_be_invoked.m_rimColor);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_animatorEnabled(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.animatorEnabled);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_rendererEnabled(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.rendererEnabled);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_m_gpuAnimator(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.m_gpuAnimator);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ALL_MODEL_INSTANING_COUNTER(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.xlua_pushinteger(L, Yoozoo.Gameplay.RTS.ModelInstaning.ALL_MODEL_INSTANING_COUNTER);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_localScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.localScale);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_poolKey(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.poolKey = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_owner(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.owner = gen_value;
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_enemy(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.enemy = gen_value;
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_mat(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_shadowMesh(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.shadowMesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_shadowMat(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.shadowMat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_animationInfo(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.animationInfo = (Yoozoo.Gameplay.RTS.GPUSkinning_AllBoneAnimation)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.RTS.GPUSkinning_AllBoneAnimation));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_transforms(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.transforms = (System.Collections.Generic.List<UnityEngine.Transform>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Transform>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_components(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.components = (System.Collections.Generic.List<UnityEngine.Component>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Component>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_nameToHash(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.nameToHash = (System.Collections.Generic.Dictionary<string, int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, int>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_lodMeshLow(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.lodMeshLow = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_lodMeshMedium(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.lodMeshMedium = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_hasInitedMountPoints(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.hasInitedMountPoints = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_m_transform(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.m_transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_m_displaySubMesh1(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.m_displaySubMesh1 = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_m_riming(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.m_riming = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_m_rimInstencity(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.m_rimInstencity = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_m_rimColor(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.m_rimColor = gen_value;
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_animatorEnabled(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.animatorEnabled = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_rendererEnabled(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.rendererEnabled = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_m_gpuAnimator(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.m_gpuAnimator = (Yoozoo.Gameplay.RTS.GPUSkinning_SpawnObject)translator.GetObject(L, 2, typeof(Yoozoo.Gameplay.RTS.GPUSkinning_SpawnObject));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_ALL_MODEL_INSTANING_COUNTER(RealStatePtr L)
        {
		    try {
                
			    Yoozoo.Gameplay.RTS.ModelInstaning.ALL_MODEL_INSTANING_COUNTER = LuaAPI.xlua_tointeger(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_localScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.RTS.ModelInstaning gen_to_be_invoked = (Yoozoo.Gameplay.RTS.ModelInstaning)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.localScale = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
